package com.xuecheng.base.constants;

/**
 * rabbitMQ常量类
 *
 * @author itcast
 * @create 2024-09-25 14:44
 */
public class RabbitMqConstants {

    /**
     * 交换机
     */
    public static class Exchange {
        /**
         * content服务
         */
        public static final String CONTENT = "xczx.exchange.topic.content";

        /**
         * orders服务
         */
        public static final String ORDERS = "xczx.exchange.topic.orders";
    }

    /**
     * 队列
     */
    public static class Queue {
        /**
         * 课程发布
         */
        public static final String COURSE_PUBLISH = "xczx.content.course.publish";

        /**
         * 支付成功通知学习服务
         */
        public static final String LEARNING_PAY_SUCCESS = "xczx.learning.paySuccess";
    }

    /**
     * 路由键
     */
    public static class Key {
        public static final String COURSE_PUBLISH = "coursePublish";
    }
}
